class Consultation {
  /// timely
  String id;
  String remarks;
  String createBy;
  String createDate;
  String updateBy;
  String updateDate;
  String pageNo;
  String pageSize;
  String patientId;
  String title;
  String content;
  String appointmentImag;
  String video;
  String avatar;
  String name;
  String sectionTypeName;
  String office;
  String sectionType;

  /// online
  String onlineConsultationId;
  String initiatorId;
  String initiatorName;
  String patientName;
  String recipientId;
  String recipientName;
  String illnessDesc;
  String caseData;
  String consultingType;
  String fullname;
  String sectionName;

  Consultation({
    this.id,
    this.remarks,
    this.createBy,
    this.createDate,
    this.updateBy,
    this.updateDate,
    this.pageNo,
    this.pageSize,
    this.patientId,
    this.title,
    this.content,
    this.appointmentImag,
    this.video,
    this.avatar,
    this.name,
    this.sectionTypeName,
    this.office,
    this.sectionType,
    this.onlineConsultationId,
    this.initiatorId,
    this.initiatorName,
    this.patientName,
    this.recipientId,
    this.recipientName,
    this.illnessDesc,
    this.caseData,
    this.consultingType,
    this.fullname,
    this.sectionName,
  });

  factory Consultation.fromJson(Map<String, dynamic> json) {
    return Consultation(
      id: json['id'],
      remarks: json['remarks'],
      createBy: json['createBy'],
      createDate: json['createDate'],
      updateBy: json['updateBy'],
      updateDate: json['updateDate'],
      pageNo: json['pageNo'],
      pageSize: json['pageSize'],
      patientId: json['patientId'],
      title: json['title'],
      content: json['content'],
      appointmentImag: json['appointmentImag'],
      video: json['video'],
      avatar: json['avatar'],
      name: json['name'],
      sectionTypeName: json['sectionTypeName'],
      office: json['office'],
      sectionType: json['sectionType'],
      onlineConsultationId: json['onlineConsultationId'],
      initiatorId: json['initiatorId'],
      initiatorName: json['initiatorName'],
      patientName: json['patientName'],
      recipientId: json['recipientId'],
      recipientName: json['recipientName'],
      illnessDesc: json['illnessDesc'],
      caseData: json['caseData'],
      consultingType: json['consultingType'],
      fullname: json['fullname'],
      sectionName: json['sectionName'],
    );
  }
}
